package com.starlink.model.dtomapper;

import com.starlink.model.domain.AgreementDO;
import com.starlink.model.request.AgreementRequest;
import com.starlink.model.vo.AgreementVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface AgreementDtoMapper {

    AgreementDtoMapper INSTANCE = Mappers.getMapper(AgreementDtoMapper.class);

    /**
    * DO to VO
    * @param agreementDO
    * @return
    */
    AgreementVO do2VO(AgreementDO agreementDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    AgreementDO request2DO(AgreementRequest request);
}
